package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IH_SMainActivityContract;
import com.clouddot.baipai.model.H_SMainActivityModel;
import com.clouddot.baipai.presenter.H_SMainActivityPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class H_SMainActivityModule {

    private IH_SMainActivityContract.IView mView;

    public H_SMainActivityModule(IH_SMainActivityContract.IView view) {
        mView = view;
    }

    @Provides
    public IH_SMainActivityContract.IPresenter providerPresenter() {
        return new H_SMainActivityPresenter(mView, new H_SMainActivityModel(mView.getContext()));
    }
}
